﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.Controls.LAIHAN
{
    public partial class UCLHLAIHANNRXX : System.Web.UI.UserControl
    {
        public string ContentControlID
        {
            get
            {
                return Convert.ToString(ViewState["ContentControlID"]);
            }
            set
            {
                ViewState["ContentControlID"] = value;
            }
        }
        public string FocusContronID
        {
            get
            {
                return Convert.ToString(ViewState["FocusContronID"]);
            }
            set
            {
                ViewState["FocusContronID"] = value;
            }
        }

        public Unit Width
        {
            set { this.popuTip.Width = value; }
        }

        public void Hide()
        {
            this.popuTip.ShowOnPageLoad = false;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadSuggestYiJians();
            }
        }

        public void LoadSuggestYiJians()
        {
            this.lbYiJians.Items.Clear();
            DataRowCollection drc = new BLL.Access.SpHelper().P_YS_LH_LAIHANNRKJDJ("处调整来函内容").Tables[0].Rows;
            foreach (DataRow item in drc)
            {
                this.lbYiJians.Items.Add(Convert.ToString(item["S_NEIRONG"]));
            }
        }

        public void LoadContent(int laihanlc, int laihanlx)
        {
        }
    }
}